package com.huabo.fxgl.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.huabo.fxgl.entity.RiskAssplan;
import com.huabo.fxgl.entity.RiskAssplanRisk;
import com.huabo.fxgl.mapper.RiskAssplanRiskMapper;
import com.huabo.fxgl.service.IRiskAssplanRiskService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.huabo.fxgl.service.IRiskAssplanService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author LiYe
 * @since 2022-08-01
 */
@Service
public class RiskAssplanRiskServiceImpl extends ServiceImpl<RiskAssplanRiskMapper, RiskAssplanRisk> implements IRiskAssplanRiskService {
    @Autowired
    private IRiskAssplanService riskAssplanService;
    @Autowired
    private RiskAssplanRiskMapper riskAssplanRiskMapper;

    @Override
    public List<RiskAssplanRisk> findRiskByRiskType(String typeId, BigDecimal planId) {
        return riskAssplanRiskMapper.findRiskByRiskType(typeId,planId);
    }

    @Override
    public IPage<RiskAssplanRisk> findRiskInRiskIdAndAssId(String ids, BigDecimal planId,IPage pageBean) {
        return riskAssplanRiskMapper.findRiskInRiskIdAndAssId(ids,planId,pageBean);
    }


}
